 var title="船舶检验";
        $("#iframefgwj").attr("src","/iframe/hsywyltDetail.jhtml?title="+title);
        var channelid='324,155,239,312,314';
            //GraphVis可视化对象通用配置项
            var config = {
                node: { //节点的默认配置
                    label: { //标签配置
                        show: true, //是否显示
                        color: '255,255,255', //字体颜色
                        font: '20px 微软雅黑 ', //字体大小及类型 
                        textPosition: 'Middle_Center', //文字位置 Top_Center,Bottom_Center,Middle_Right,Middle_Center
                        wrapText:true,
                    },
                    shape: 'circle', //rect,circle,star
                             
                    color: '235,113,30', //节点颜色
                    showShadow:true,	
                        onClick : function(event,node){ //节点点击事件回调
                        	node.borderWidth=0;//节点边框宽度
                        	node.borderColor='255,0,0';                        	
                        	this.visgraph.highLightNeiberNodes(node, 1);
                        	switch(node.label){
                        	case"船舶建造重要日期确认":
                        		title="重要日期";
                        		break;
                        	case"注册验船师资格考试":
                        		title="验船师";
                        		break;
                        	default:
                        			title=node.label;
                        	break;
                        	}
                        	$("#iframefgwj").attr("src","/iframe/hsywyltDetail.jhtml?title="+title+"&channelid="+channelid);
                        },
                        selected: { // 节点选中后样式
                            borderColor: '136,198,255', // 选中时边框颜色
                            borderAlpha: 1, // 选中时的边框透明
                            borderWidth: 3, // 选中是的边框宽度
                            showShadow: true, // 是否展示阴影
                            shadowColor: '136,198,255' // 选中是的阴影颜色
                          },
                  alpha:1//透明度
                },
                link: { //连线的默认配置
                    label: { //连线标签
                        show: true, //是否显示
                        color: '204,204,204', //字体颜色
                        font: 'normal 13px Arial', //字体大小及类型
                    },
                    lineType: 'direct', //连线类型,direct,curver,vlink,hlink,vbezier,hbezier,bezier
                    color: '80,200,255', //连线颜色
                    showArrow: false ,//显示连线箭头
                    lineDash:[0],
                    onClick :function(event,link){ //连线点击事件回调
                        
                    }
                },
                wheelZoom: 0.8, //开启鼠标滚轮缩放
                highLightNeiber: false //相邻节点高亮开关
            };

            //1、创建GraphVis对象，进行方法调用
            var visgraph = new VisGraph(document.getElementById('graph-panel'), config);
            visgraph.switchAnimate(true);//开启无限重绘模式，动画流畅，但大数据量时影响性能
         
            var nodepx = visgraph.addNode({id:1,label:"船舶建造重要日期确认",x:460,y:80});
            nodepx.width=140;
            nodepx.fillColor="89,219,157";
            var nodeks = visgraph.addNode({id:2,label:"船舶检验机构",x:160,y:320});
            nodeks.width=140;
            nodeks.fillColor="160,192,167";

            var nodeD = visgraph.addNode({id:4,label:"船舶检验",x:400,y:300});
            nodeD.width=160;
            nodeD.font='30px 微软雅黑 ';
           
            var nodebz = visgraph.addNode({id:3,label:"注册验船师资格考试",x:570,y:470});
            nodebz.width=140;
            nodebz.fillColor="52,104,130";
            var linkA = visgraph.addEdge({source:4,target:1,});
            var linkB = visgraph.addEdge({source:4,target:2,});
            var linkC = visgraph.addEdge({source:4,target:3,});

            
            visgraph.moveCenter(); //居中
            function gjzSubmit(){
            	$("#iframefgwj").attr("src","/iframe/hsywyltDetail.jhtml?title="+$("#keyword").val());
            }